@charset "utf-8";
* {
  box-sizing: border-box;
}

.my_index {
  color: #444f58;
  width: 774px;
  margin: 35px auto 0;
  margin-bottom: 56px;

  a {
    color: #444f58;

    &:hover {
      color: #eb413d;
    }
  }

  .head_info {
    position: relative;
    font-size: 14px;
    margin-left: 15px;
    line-height: 28px;
    margin-bottom: 15px;

    div {
      font-size: 22px;
      line-height: 36px;
    }
    
    p {
      span {
        color: #eb413d;
      }
    }

    ul {
      position: absolute;
      right: 0;
      bottom: 0;

      li {
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 20px;
        position: relative;

        &:not(:first-child) {
          &::before {
            content: "";
            display: block;
            height: 14px;
            border-left: 1px solid #E7E7E7;
            position: absolute;
            left: 0;
            top: 50%;
            -webkit-transform: translateY(-50%);
            -moz-transform: translateY(-50%);
            -ms-transform: translateY(-50%);
            -o-transform: translateY(-50%);
            transform: translateY(-50%);
          }
        }
      }
    }
  }

  .type_tab {
    text-align: center;
    border: 1px solid #E7E7E7;
    border-radius: 5px;
    line-height: 54px;
    margin-left: 15px;
    font-size: 14px;

    .item {
      width: 25%;
      position: relative;

      &:not(:first-child) {
        &::before {
          content: "";
          position: absolute;
          height: 24px;
          border-left: 1px solid #E7E7E7;
          left: 0;
          top: 50%;
          -webkit-transform: translateY(-50%);
          -moz-transform: translateY(-50%);
          -ms-transform: translateY(-50%);
          -o-transform: translateY(-50%);
          transform: translateY(-50%);
        }

        a {
          margin-left: 1px;
        }
      }

      a {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 20px;

        &:hover {
          background-color: #f9f9f9;
        }

        em {
          color: #EB413D;
        }
      }
    }
  }

  .type_frame {
    .type_title {
      position: relative;
      line-height: 56px;
      margin-left: 15px;
      font-size: 14px;

      p {
        margin-right: 150px;
        margin-left: 5px;
      }

      a {
        display: block;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        position: absolute;
        right: 0;
        top: 0;
      }
    }

    //表格头部
    .table_head {
      margin-left: 15px;
      position: relative;
      .head_title {
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        height: 50px;
        background: #f8f8f8;
        border: 1px solid #ddd;
        li {
          float: left;
          height: 100%;
          span {
            float: left;
            display: block;
            height: 50px;
            line-height: 50px;
            font-size: 13px;
            color: #99999A;
            margin-left: 5px;
          }
          i {
            display: inline-block;
            font-size: 30px;
            height: 50px;
            line-height: 50px;
            color: #99999A;
          }
        }
        li:first-child {
          margin-left: 112px;
        }
        li:nth-child(2) {
          margin-left: 121px;
        }
        li:nth-child(3) {
          margin-left: 100px;
        }
        li:nth-child(4) {
          margin-left: 94px;
        }
        li:nth-child(5) {
          margin-left: 28px;
          transition: all 300ms ease;
          &:hover,
          &:active {
            background: #878787;
            cursor: pointer;
            span,
            i {
              color: #fff;
            }
          }
        }
        li:nth-child(6) {
          margin-left: 7px;
        }
      }
      //交易状态
      .trade {
        display: none;
        position: absolute;
        width: 87px;
        height: 50px;
        margin-left: 593px;
        z-index: 10;
        li {
          border: 1px solid #efefef;
          border-top: 0;
          color: #99999a;
          height: 30px;
          line-height: 30px;
          background: #fff;
          cursor: pointer;
          padding-left: 10px;
          &:hover,
          &:active {
            background: #efefef;
          }
        }
      }
    }

    /*************表格类***************/
    /*表格样式配置*/
    $table_height: 41px;
    //表格默认高度
    $table_font_size: 13px;
    //表格默认字体大小
    $table_align: center;
    //表格默认水平对齐方式
    $table_valign: middle;
    //表格默认垂直对齐方式
    $table_border_color: #e7e7e7;
    //表格边框颜色
    $table_padding: 10px;
    //表格内边距
    $table_radius: 6px;
    //表格圆角
    $table_light_color: transparent;
    //表格高亮颜色
    $table_blank_height: 15px;
    //表格空白行高度
    $table_bd_color: #444f58;
    //表格默认字体颜色
    $table_bd_bgcolor: transparent;
    //表格默认背景颜色
    $table_hf_color: transparent;
    //表头和表尾字体默认颜色
    $table_hf_bgcolor: #f8f8f8;
    //表头和表尾背景默认颜色
    $table_h_height: 47px;
    //表头默认高度
    $table_h_align: center;
    //表头默认水平对齐方式
    $table_h_valign: middle;
    //表头默认垂直对齐方式
    $table_f_red_color: #ffffff;
    //红色表尾字体颜色
    $table_f_red_bgcolor: #ea413c; //红色表尾背景颜色
    $table_f_red_height: 47px;
    //红色表尾高度
    $tableWidth: 323px 73px 46px 75px 73px 90px 10px;
    $tableWidthCount: length($tableWidth);
    $cred: #eb413d;
    $cgray: #444f58;
    /*基础表格*/
    .table {
      display: block;
      margin: 0;
      padding: 0;
      width: 100%;
      background-color: $table_hf_color;
      table {
        width: 100%;
        word-break: break-all;
        font-size: $table_font_size;
        thead {
          tr {
            border: 1px solid $table_border_color;
            text-align: $table_h_align;
            vertical-align: $table_h_valign;
            th {
              height: $table_h_height;
              font-weight: normal;
              color: $table_hf_color;
              background-color: $table_hf_bgcolor;
              padding: $table_padding;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
            }
            &:first-child {
              th {
                &:first-child {
                  border-top-left-radius: $table_radius + 1;
                }
                &:last-child {
                  border-top-right-radius: $table_radius + 1;
                }
              }
            }
          }
        }
        tbody,
        tfoot {
          tr {
            border: 1px solid $table_border_color;
            text-align: $table_align;
            vertical-align: $table_valign;
            td {
              height: $table_height;
              padding: $table_padding;
            }
          }
        }
        tbody {
          tr {
            &:hover {
              td {
                background-color: $table_light_color;
              }
            }
            td {
              color: $table_bd_color;
              background-color: $table_bd_bgcolor;
              transition: background-color 500ms ease;
            }
          }
          /*表格显示空白隔行*/
          tr.blank {
            border-left: 1px solid $table_bd_bgcolor !important;
            border-right: 1px solid $table_bd_bgcolor !important;
            &:hover {
              td {
                background-color: $table_bd_bgcolor;
              }
            }
            td {
              height: $table_blank_height;
              padding: 0;
              border-left: 1px solid $table_bd_bgcolor !important;
              border-right: 1px solid $table_bd_bgcolor !important;
            }
          }
          /*商品信息类上下边距-小*/
          tr.ptb_xs {
            td {
              padding-top: 17px;
              padding-bottom: 17px;
              line-height: 1.8em;
              vertical-align: top;
              &:first-child {
                padding-left: 10px;
                text-align: left;
              }
            }
          }
        }
        tfoot {
          tr {
            td {
              color: $table_hf_color;
              background-color: $table_hf_bgcolor;
            }
          }
        }
        /*文字左对齐*/
        .left {
          text-align: left;
        }
        .yichaifen {
          padding-bottom: 10px;
          position: relative;
        }
        /*文字水平居中对齐*/
        .center {
          text-align: center;
        }
        /*文字右对齐*/
        .rigth {
          text-align: right;
        }
        /*文字上对齐*/
        .top {
          vertical-align: top;
        }
        /*文字垂直居中对齐*/
        .middle {
          vertical-align: middle;
        }
        /*文字下对齐*/
        .bottom {
          vertical-align: bottom;
        }
      }
      /*表格红色表尾*/
      table.redfoot {
        tfoot {
          tr {
            td {
              color: $table_f_red_color;
              background-color: $table_f_red_bgcolor;
              height: $table_f_red_height;
            }
          }
        }
      }
      /*表格显示所有列边框*/
      table.colsbor {
        tbody {
          tr {
            td {
              padding-left: 5px;
              padding-right: 5px;
              border: 1px solid $table_border_color;
              .o8_delete {
                margin-left: 190px;
                cursor: pointer;
              }
            }
          }
        }
      }
      /*表格显示有合并单元格的列边框*/
      table.rowsmerge {
        tbody {
          tr {
            td[rowspan] {
              border: 1px solid $table_border_color;
            }
          }
        }
      }
    }
    /*表格尾部显示圆角*/
    .tfoot_mellow {
      border-bottom-left-radius: $table_radius;
      border-bottom-right-radius: $table_radius;
      table {
        tbody,
        tfoot {
          &:last-child {
            tr {
              &:last-child {
                td {
                  &:first-child {
                    border-bottom-left-radius: $table_radius + 1;
                  }
                  &:last-child {
                    border-bottom-right-radius: $table_radius + 1;
                  }
                }
              }
            }
          }
        }
      }
    }
    table {
      width: 100%;
      tbody {
        tr {
          td {
            text-align: left;
            &:nth-child(odd) {
              padding-left: 15px;
            }
            &:first-child {
              padding-left: 0;
            }
          }
          ~ tr {
            td {
              padding-top: 8px;
            }
          }
          &:last-child {
            td {
              padding-bottom: 15px;
            }
          }
        }
      }
    }
    /******信息配置******/
    $tableWidth: 323px 73px 46px 75px 73px 90px;
    $tableWidthCount: length($tableWidth);
    $cred: #eb413d;
    $cgray: #444f58;
    .table {
      margin-left: 15px;
      width: 759px;
      table {
        thead {
          tr {
            @for $i from 0 to $tableWidthCount {
              th:nth-child(#{$i+1}) {
                width: nth($tableWidth, $i+1);
              }
            }
          }
        }
        tbody {
          tr {
            height: 146px;
            i {
              font-size: 12px;
            }
            td:nth-child(2),
            td:nth-child(3),
            td:nth-child(4),
            td:nth-child(6) {
              color: #878787;
            }
            td:nth-child(5) {
              i,
              span {
                color: $cgray;
              }
            }
            td:first-child p.tag {
              display: inline-block;
            }
            td:first-child p.title,
            td:nth-child(4),
            td:nth-child(5),
            td:nth-child(6) {
              position: relative;
              vertical-align: middle;
              a {
                display: block;
                color: $cgray;
                &:hover {
                  color: $cred;
                }
              }
              .dialog {
                position: absolute;
                left: 0;
                bottom: 120px;
                color: #444f58;
                z-index: 99;
                min-width: 89px !important;
              }
              .stay {
                position: relative;
                display: block;
                width: 20px;
                height: 18px;
                line-height: 18px;
                border-radius: 1px;
                color: #e60012;
                background: #fdeceb;
                border: 1px solid #f7b3b1;
                margin: 0 auto;
                text-align: center;
                margin-top: 5px;
                margin-bottom: 5px;
                cursor: pointer;
              }
            }
            td:nth-child(4) a {
              display: inline;
            }
            td:first-child,
            td:nth-child(2) {
              border-right-color: transparent;
            }
            td:last-child {
              p {
                margin-bottom: 3px;
                color: $cred;
                i {
                  margin-right: 3px;
                }
              }
              a.evaluate {
                color: $cred;
                &:hover,
                &:active {
                  cursor: pointer;
                }
              }
            }

            &.merge {
              td:first-child,
              td:nth-child(2) {
                border-right-color: #E7E7E7;
              }
            }
          }
          tr:first-child {
            height: 41px;
            td {
              .time {
                margin-left: 22px;
              }
              .number {
                margin-left: 20px;
              }
              a {
                color: $cgray;
                cursor: pointer;
                i {
                  color: $cred;
                  margin-right: 5px;
                }
                &:hover {
                  color: $cred;
                }
                &:first-of-type {
                  margin-left: 95px;
                  em {
                    display: inline-block;
                    margin-left: 8px;
                  }
                  img {
                    margin-bottom: -4px;
                  }
                }
                &.del i {
                  float: right;
                  color: $cgray;
                  margin-right: 5px;
                  &:hover {
                    color: $cred;
                  }
                }
              }
              .gantan {
                display: inline-block;
                width: 19px;
                height: 19px;
                line-height: 19px;
                margin-right: 8px;
                border-radius: 50%;
                background: #eb413d;
                text-align: center;
                margin-bottom: 0;
                color: #fff;
                font-weight: bold;
                vertical-align: middle;
                &:hover {
                  color: #fff;
                }
              }
            }
          }
        }
      }
    }
    .ptb_xs td:first-child {
      width: 236px;
    }
    .ptb_xs td:nth-child(2),
    .ptb_xs td:nth-child(4) {
      width: 90px;
      text-align: center;
    }
    .ptb_xs td:nth-child(3) {
      text-align: center;
      width: 174px;
      position: relative;
      padding-left: 0;
      padding-right: 0;
      div {
        white-space: nowrap;
        span {
          display: inline-block;
          width: 52px;
          text-align: center;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
      > span {
        display: inline-block;
        margin-top: 15px;
        i {
          font-size: 40px;
        }
      }
    }
    .ptb_xs td:first-child {
      width: 236px;
    }
    .ptb_xs td:nth-child(2),
    .ptb_xs td:nth-child(4) {
      width: 90px;
      text-align: center;
    }
    .ptb_xs td:nth-child(5) {
      text-align: center;
      width: 89px;
      p {
        text-align: center;
      }
      a {
        text-align: center;
      }
    }
    .ptb_xs td:nth-child(6) {
      a {
        text-align: center;
        margin-bottom: 5px;
      }
      a.evaluate {
        cursor: pointer;
      }
    }
    .table {
      margin-bottom: 10px;
    }

    /*************表格内商品信息块（图片、标题、标签）***************/
    .goods_info {
      display: inline-block;
      vertical-align: middle;
      overflow: hidden;
      /*图片*/
      .picbox {
        display: block;
        float: left;
        width: 120px;
        height: 120px;
        background-color: #ffffff;
        text-align: center;
        img {
          height: 80%;
          margin: 10% 0;
        }
      }
      p {
        float: left;
        width: 17em;
        line-height: 1.8em;
        text-align: justify;
      }
      /*标题*/
      .title {
        height: 5.4em;
        overflow: hidden;
        a {
          color: #444f58;
          transition: color 300ms ease;
          &:hover {
            color: #eb413d;
          }
        }
      }
      /*标签*/
      .tag {
        margin-top: 26px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        span {
          ~ span {
            margin-left: 32px;
          }
        }
      }
    }
    /*信息块小尺寸*/
    .goods_info_mini {
      .picbox {
        width: 100px;
        height: 100px;
      }
      p {
        width: 9em;
      }
    }
  }
}